﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EstateMan.Domain
{
    public class Property :Entity
    {
        public int Id { get; set; }
        
        public string Name { get; set; }

        public int PropertyTypeId { get; set; }
        public PropertyType PropertyType { get; set; }

        public int SubPropertyTypeId { get; set; }
        public PropertyType SubPropertyType { get; set; }
        
        public Address Address { get; set; }
        public int AddressId { get; set; }
        
        public int AgentId { get; set; }
        public Agent Agent { get; set; }
        
        public int NumberOfBathrooms { get; set; }
        
        public int NumberOfBedrooms { get; set; }
        
        public bool HasGarden { get; set; }
        
        public bool HasParking { get; set; }
                
        public byte[] RowVersion { get; set; }
       
    }
}
